<#include "includemenu.html"/>

<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">系统管理</a></li>
		<li class="bc_ithems"><a href="/${orgi}/manage/system/index.html">系统设置</a></li>
	</ul>
	<#if ex ??>
	<ul class="controlButtons">
		<li class="cbtn-icon-3" data-toggle="ajax" id="catagoryadd" href="/${orgi}/manage/system/${type!''}/catagoryadd.html" data-width="480" title="创建分组"></li>
		<#if catagoryid!='0'>
		<li class="cbtn-icon-31" data-toggle="ajax" id="catagoryedit" href="/${orgi}/manage/system/${type!''}/catagoryedit/${catagoryid!''}.html" data-width="480" title="修改分组"></li>
		<li class="cbtn-icon-30" id="organdelo" onclick="art.confirm('您确定要删除该分组吗？' , function(){location.href='/${orgi}/manage/system/${type!''}/${catagoryid!''}/catagorydelo.html'} , function(){})" title="删除分组"></li>
		<li class="cbtn-icon-33" data-toggle="ajax" id="newreport" href="/${orgi}/manage/system/templetadd/${type!''}/${catagoryid!''}.html" data-width="480" title="添加模板"></li>
		</#if>		
		
	</ul>
	</#if>
</div>
<div class="rs_layout_left" resizable="true" style="width:230px;">
	<div class="lftTreeWrap">
		<div class="ztree" id="zTree_adminLIst"></div>
	</div>
</div>
<SCRIPT type="text/javascript">
	$(document).ready(function(){
		ztree.selectNode(ztree.getNodeByParam("id", "<#if catagoryid??&&catagoryid!='0'>${catagoryid!''}<#else>${type!''}</#if>", null));
	});
</SCRIPT>

<!--<div class="rs_layout_right" style="width:300px;"></div>-->
<div class="rs_layout_center">
	<div class="rs_layout">
		<div class="rs_layout_center">
			<div class="tableScrollWrap">
				 <table class="table_style_1">
					<thead>
						<tr>
							<th></th>
							<th><i class="verMidWrap">名称</i><i class="tbArrow"></i></th>
							<th class="minSize">备注</th>
							<th class="minSize"><i class="verMidWrap">创建时间</i><i class="tbArrow"></i></th>
							<#if ex ??>
							<th class="minSize">操作</th>
							</#if>
						</tr>
					</thead>
					<tbody>
						<#if templetList??>
						<#list templetList as templet>
						<tr>
							<td class="tdIcons"><input type="checkbox"></td>
							<td>
								<img src="${templet.iconstr!''}" width="16" style="margin-right:3px;">${templet.name!''}
							</td>
							<td class="minSize desc" title="${templet.description!''}"><#if templet.description?? && templet.description?length gt 20>${templet.description[0..20]}......<#else>${templet.description!""}</#if></td>
							<td class="minSize"><#if templet.createtime??>${templet.createtime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
							<#if ex ??>
							<td class="minSize">
								<a href="/${orgi}/manage/system/templetedit/${templet.id!''}.html" data-width="480" data-toggle="ajax" title="编辑${templet.name!''}"><i class="tbControlIcon tci-100"></i></a>
								<a href="/${orgi}/manage/system/templetdel/${templet.id!''}/${templet.templettype!''}/${catagoryid!''}.html" data-toggle="delete" data-title="请确认是否删除模板？" title="删除${templet.name!''}"> <i class="tbControlIcon tci-101"></i> </a>
								<a href="/${orgi}/manage/system/templetcode/${templet.id!''}.html" data-toggle="ajax" title="编辑${templet.name!''}代码"><i class="tbControlIcon tci-102"></i></a>
							</td>
							</#if>
						</tr>
						</#list>
						</#if>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>